package com.kid.keep.service;

import com.kid.keep.dto.AddUserDTO;
import com.kid.keep.dto.UserDTO;

/**
 * @Description 用户相关操作
 * @Author JOHN
 * @Create 2020-01-02
 * @Since 1.0.0
 */
public interface IUserService {
    /**
     * 新增登录用户
     *
     * @param addUserDTO
     * @return
     */
    UserDTO addUser(AddUserDTO addUserDTO);

    /**
     * 查询登录用户详情
     *
     * @param userId
     * @param appId
     * @return
     */
    UserDTO findByIdAndAppId(Long userId,Long appId);


    /**
     * 查询登录用户详情
     *
     * @param userId
     * @return
     */
    UserDTO findById(Long userId);

}
